﻿@using Pottery.FrontEnd.Resources;
@model Pottery.FrontEnd.ViewModels.LogOnViewModel

@{
    ViewBag.Title = LogOn.PageName;
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<hgroup>
    <h2 class="title">@LogOn.Authorization</h2>
</hgroup>
<section id="loginForm">
@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)  

    <fieldset>
    <span>@Html.ActionLink(LogOn.LinkForgotPassword, "RecoverPassword", "Account")</span>
        <legend>Log in Form</legend>
        <ol>
            <li>
                @Html.LabelFor(m => m.Login)
                @Html.TextBoxFor(m => m.Login)
                @Html.ValidationMessageFor(m => m.Login)
            </li>
            <li>
                @Html.LabelFor(m => m.Password)
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </li>
            <li>
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })
            </li>
        </ol>
        <input type="submit" value="@LogOn.BtnEnter" />
    </fieldset>
    <p>
        @Html.ActionLink(LogOn.LinkRegistrate, "RegistrationForm", "Home") @LogOn.NoAccount.      
    </p>
}
</section>
